package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AiAppDyRecordTMapper;
import com.ruoyi.system.domain.AiAppDyRecordT;
import com.ruoyi.system.service.IAiAppDyRecordTService;

/**
 * 应用调用记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-08
 */
@Service
public class AiAppDyRecordTServiceImpl implements IAiAppDyRecordTService 
{
    @Autowired
    private AiAppDyRecordTMapper aiAppDyRecordTMapper;

    /**
     * 查询应用调用记录
     * 
     * @param id 应用调用记录主键
     * @return 应用调用记录
     */
    @Override
    public AiAppDyRecordT selectAiAppDyRecordTById(Long id)
    {
        return aiAppDyRecordTMapper.selectAiAppDyRecordTById(id);
    }

    /**
     * 查询应用调用记录列表
     * 
     * @param aiAppDyRecordT 应用调用记录
     * @return 应用调用记录
     */
    @Override
    public List<AiAppDyRecordT> selectAiAppDyRecordTList(AiAppDyRecordT aiAppDyRecordT)
    {
        return aiAppDyRecordTMapper.selectAiAppDyRecordTList(aiAppDyRecordT);
    }

    /**
     * 新增应用调用记录
     * 
     * @param aiAppDyRecordT 应用调用记录
     * @return 结果
     */
    @Override
    public int insertAiAppDyRecordT(AiAppDyRecordT aiAppDyRecordT)
    {
        aiAppDyRecordT.setCreateTime(DateUtils.getNowDate());
        return aiAppDyRecordTMapper.insertAiAppDyRecordT(aiAppDyRecordT);
    }

    /**
     * 修改应用调用记录
     * 
     * @param aiAppDyRecordT 应用调用记录
     * @return 结果
     */
    @Override
    public int updateAiAppDyRecordT(AiAppDyRecordT aiAppDyRecordT)
    {
        aiAppDyRecordT.setUpdateTime(DateUtils.getNowDate());
        return aiAppDyRecordTMapper.updateAiAppDyRecordT(aiAppDyRecordT);
    }

    /**
     * 批量删除应用调用记录
     * 
     * @param ids 需要删除的应用调用记录主键
     * @return 结果
     */
    @Override
    public int deleteAiAppDyRecordTByIds(Long[] ids)
    {
        return aiAppDyRecordTMapper.deleteAiAppDyRecordTByIds(ids);
    }

    /**
     * 删除应用调用记录信息
     * 
     * @param id 应用调用记录主键
     * @return 结果
     */
    @Override
    public int deleteAiAppDyRecordTById(Long id)
    {
        return aiAppDyRecordTMapper.deleteAiAppDyRecordTById(id);
    }
}
